<table class="table table-bordered">
    <thead>
        <tr>
            <!-- <th></th> -->
            <th>门店ID</th>
            <th>城市分类</th>
            <th>门店名称</th>
            <th>排序</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody id="ajaxList">
        {if empty($list)}
            <tr><td colspan="6" style="text-align:center;">暂无数据</td></tr>
        {/if}
        {foreach name="list" item="vo" key="k" }
          <tr role="row">
            <!-- <td><input type="checkbox"></td> -->
            <td>{$vo.id}</td>
            <td>{$vo.city_name}</td>
            <td>{$vo.title|getSubstr=0,33}</td>
            <td>{$vo.sort}</td>
            <td>
              <a class="btn btn-primary" href="javascript:;" onclick="openYemian('/index.php/Admin/Shop/shop_edit/id/{$vo.id}','编辑门店内容')"><i class="fa fa-pencil"></i></a>
              <a class="btn btn-danger" href="javascript:void(0)" data-url="{:url('Shop/shop_del')}" data-id="{$vo.id}" onclick="delRecord(this,'确定删除该门店？此操作不可恢复！',{$vo.id},'/index.php/Admin/Shop/shop_del')"><i class="fa fa-trash-o"></i></a>
            </td>
          </tr>
        {/foreach}
    </tbody>
</table>
<div>
    <div style="float:left;">共{$count}条</div>
    <div style="float:right;">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        url = $(this).attr('href');
        ajax_get_table('formSearch',url);
        return false;
    });
    $("#page_info").change(function(){
        cur_page = $(this).data('p');
        ajax_get_table('formSearch',cur_page);
    });
</script>